package edu.hubu.talentmanagementsystem.model.ext;


import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import edu.hubu.talentmanagementsystem.model.Model;

import java.io.Serializable;

/**
 * <p>
 * 员工档案表
 * </p>
 *
 * @author moonlan
 * @since 2021-03-13
 */
@TableName("staff_archival")
public class StaffArchival extends Model<StaffArchival> implements Serializable {


    /**
     * 员工档案表ID
     */
    @TableId(value = "staff_archival_id", type = IdType.AUTO)
    private Integer staffArchivalId;

    /**
     * 被评价员工ID
     */
    @TableField("staff_archival_staff_id")
    private Integer staffArchivalStaffId;

    @TableField(exist = false)
    private Staff staff;

    /**
     * 员工评价表
     */
    @TableField("staff_archival_evaluation_id")
    private Integer staffArchivalEvaluationId;

    @TableField(exist = false)
    private StaffEvaluation staffEvaluation;

    public Staff getStaff() {
        return staff;
    }

    public StaffArchival setStaff(Staff staff) {
        this.staff = staff;
        return this;
    }

    public StaffEvaluation getStaffEvaluation() {
        return staffEvaluation;
    }

    public StaffArchival setStaffEvaluation(StaffEvaluation staffEvaluation) {
        this.staffEvaluation = staffEvaluation;
        return this;
    }

    public Integer getStaffArchivalId() {
        return staffArchivalId;
    }

    public StaffArchival setStaffArchivalId(Integer staffArchivalId) {
        this.staffArchivalId = staffArchivalId;
        return this;
    }

    public Integer getStaffArchivalStaffId() {
        return staffArchivalStaffId;
    }

    public StaffArchival setStaffArchivalStaffId(Integer staffArchivalStaffId) {
        this.staffArchivalStaffId = staffArchivalStaffId;
        return this;
    }

    public Integer getStaffArchivalEvaluationId() {
        return staffArchivalEvaluationId;
    }

    public StaffArchival setStaffArchivalEvaluationId(Integer staffArchivalEvaluationId) {
        this.staffArchivalEvaluationId = staffArchivalEvaluationId;
        return this;
    }

    @Override
    public String toString() {
        return "StaffArchival{" +
                "staffArchivalId=" + staffArchivalId +
                ", staffArchivalStaffId=" + staffArchivalStaffId +
                ", staffArchivalEvaluationId=" + staffArchivalEvaluationId +
                "}";
    }
}
